package org.dea.mapping;


public class DistributedComponent {

	private String name;

	private String facade;

	private String hostLabel;

	private String hostAddress;

	private String jarPath;
	
	private String args;

	private int hostPort;


	/**
	 * @return Returns the hostPort.
	 */
	public int getHostPort() {

		return hostPort;
	}


	/**
	 * @param hostPort The hostPort to set.
	 */
	public void setHostPort( int hostPort ) {

		this.hostPort = hostPort;
	}


	/**
	 * @return Returns the facade.
	 */
	public String getFacade() {

		return facade;
	}


	/**
	 * @param facade The facade to set.
	 */
	public void setFacade( String facade ) {

		this.facade = facade;
	}


	/**
	 * @return Returns the hostAddress.
	 */
	public String getHostAddress() {

		return hostAddress;
	}


	/**
	 * @param hostAddress The hostAddress to set.
	 */
	public void setHostAddress( String hostAddress ) {

		this.hostAddress = hostAddress;
	}


	/**
	 * @return Returns the hostLabel.
	 */
	public String getHostLabel() {

		return hostLabel;
	}


	/**
	 * @param hostLabel The hostLabel to set.
	 */
	public void setHostLabel( String hostLabel ) {

		this.hostLabel = hostLabel;
	}


	/**
	 * @return Returns the jarPath.
	 */
	public String getJarPath() {

		return jarPath;
	}


	/**
	 * @param jarPath The jarPath to set.
	 */
	public void setJarPath( String jarPath ) {

		this.jarPath = jarPath;
	}


	/**
	 * @return Returns the name.
	 */
	public String getName() {

		return name;
	}


	/**
	 * @param name The name to set.
	 */
	public void setName( String name ) {

		this.name = name;
	}


	
	@Override
	public String toString() {
	
		return "["+this.getHostLabel()+ " adress="+this.getHostAddress()
			+ " port="+ this.getHostPort() + " jar="+ this.getJarPath()+"]"; 
	}


	public String getArgs() {
		return args;
	}


	public void setArgs(String args) {
		this.args = args;
	}
}
